package com.zk.yygh.hosp.repository;

import com.zk.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: 张凯
 * @date: 2022/6/3 - 21:00
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    //通过命名规约让MongoRepository自动生成
    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosname(String name);
}
